<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<title>쓰기</title>
<link rel="stylesheet" href="../css/style.css" type="text/css">
<script language=javascript>

function chkSpace(str) {     

	var len = str.length;
		for (var i = 0; i < len ; i++) {
			if (str.charAt(i) == " ") return 0;
			else continue;
		}
	return 1;
} 


function send_check(n)
{
	var f = document.f;

	
	if (f.subject.value == '')
	{
		alert('제목을 입력하세요');
		f.subject.focus();
		return false;
	}
	
	
	if (f.pwd.value == '')
	{
		alert('비밀번호를 입력하세요');
		f.pwd.focus();
		return false;
	}
	
	f.submit();
}



</script>
</head>


<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" align="center">
<tr>
<td>
수정
<!--타이틀 영역의 끝-->
</td>
</tr>
<tr>
<td>
<form name="f" method="post" action="BoardReply.do" enctype="multipart/form-data">
<input type="hidden" name="idx" value="${param.idx }">
<input type="hidden" name="page" value="${param.page }">
 
<table width="750" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="120" height="25" class="td_d">제목</td>
		<td class="td_d_1" colspan="3">
		<input name="subject" type="text" class="search" style="width:250px;"></td>
		
	</tr>
	<tr>
		<td height="25" class="td_d_4">작성자</td>
		<td class="td_d_2" colspan="3">
		<input name="writter" type="text" class="search" style="width:250px;">
		</td>
	</tr>
	
	<tr>
		<td width="120" height="25" class="td_d_4">첨부파일</td>
		<td class="td_d_2">
			<input name="file" type="file" class="search" style="width:250px;">
		</td>
	</tr>

	<tr>
	<td class="td_d_4">내용</td>
		<td class="td_d_2" colspan="3">
		
		<TEXTAREA NAME='content' rows="9" cols="65"></TEXTAREA>
		

	</td></tr>
    <tr>
		<td height="25" class="td_d_4">비밀번호</td>
		<td class="td_d_3" colspan="3">
		<input name="pwd" type="password" class="search" style="width:70px;"></td>
	</tr>        
        
	
	
</table>
<table width="750" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td height="5"></td>
	</tr>
	<tr>
		<td align="center"><img src="../img/btn_reg.gif" onClick="return send_check(2)" style="cursor:hand">
		<img src="../img/btn_back.gif" onClick="JavaScript:location.href='BoardView.do?idx=${param.idx}&page=${param.page }'" style="cursor:hand"></td>
	</tr>
</table>

<input type="hidden" name="ip" value="">

</form>
</td>
</tr>
</table>
</body>

</html>